using System;
using System.Web.Mvc;
using Coleotrack.Controllers;
using NUnit.Framework;

namespace Coleotrack.Test.Controllers
{
    public class HomeControllerTest : ConcernOf<HomeController>
    {
        public override void Setup()
        {
            Sut = new HomeController();
            Sut.SetFakeControllerContext(false);
        }

        [Test]
        public void Index_should_return_View()
        {
            var result = (ViewResult) Sut.Index();

            Assert.IsInstanceOf(typeof(ViewResult), result);
        }

        public override void Teardown()
        {
            //throw new NotImplementedException();
        }
    }
}